package com.woniuxy.purchase.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.purchase.entity.dto.DemandDetailsDTO;
import com.woniuxy.purchase.entity.dto.SelectDemandDTO;
import com.woniuxy.purchase.entity.pojo.BuyDemand;
import com.woniuxy.purchase.entity.vo.DemandDetailsVO;
import com.woniuxy.purchase.entity.vo.TopDemandVO;

import java.util.List;

public interface BuyDemandService {

    Page<BuyDemand> findDemandByCondition(SelectDemandDTO o);

    List<DemandDetailsVO> findDemandDetails(Integer id);


    void insertDemand(DemandDetailsDTO dto);

    void demandToPurchase(Integer id);

    Integer updateDemandStateById(Integer state, Integer id);


    Integer findPhoneByAccount(String phoneNumber, String account);

    void updatePwdByAccount(String newPwd, String account);

    List<TopDemandVO> getTopDemand();
}
